/* 贪吃蛇游戏容器 */
.snake-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

/* 游戏画布 */
#snakeCanvas {
    border: 2px solid #333;
    border-radius: 5px;
    background-color: #f5f5f5;
}

/* 游戏控制区 */
.snake-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.snake-controls p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.snake-tips {
    font-size: 14px;
    color: #666;
}

/* 方向键适配（移动端可选，电脑端用键盘方向键） */
@media (max-width: 600px) {
    .snake-direction {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 5px;
        margin-top: 10px;
    }
    .snake-direction button {
        padding: 10px;
    }
}